package com.lo.dao;

import com.lo.entity.UserRate;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserRateMapper {


    

    List<UserRate> selectById(Long id);

    List<UserRate> selectALl();

    int delete(Long userid, Long courseid);
    List<UserRate> selectBy2Id(Long userid, Long courseid);
    int updateUserRate(UserRate userRate);
    int insert(UserRate userRate);

    List<UserRate> selectByUserId(Long userid);
    List<UserRate> selectByUidAndCid(Long userid,Long courseid);


    List<UserRate> getBestCourse();
}
